package cn.com.xuan.dao;

import cn.com.xuan.dao.bean.UserVO;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

public interface UserVORepository extends CrudRepository<UserVO, Long> {
    @Query("select u from UserVO u where u.username=:username")
    public UserVO findUserByName(@Param("username") String username);

    public UserVO findUserByUsername(String username);

}
